package org.app.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.app.Entity.User;

import java.util.Set;

@Mapper
public interface IUserMapper extends BaseMapper<User> {
    User Login(String c_phone,String c_password);
    Integer Register(User user);
    Integer updateUserInfo(User user);
    //Integer updateUserPhone(User user);
    Integer updateUserPassword(String username, String phone, String new_password);
    void saveToken(User user);
    User getById(String c_id);
    User selectUserByPhone(String c_phone);
    Set<String> getUserRoles(String c_id);

    User selectByPhoneAndUsername(String phone, String username);

}
